
package team.shuguoyiyou.authcode.authcode.service;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 * 验证码缓存接口
 */
public interface CaptchaCacheService {

    void set(String key, String value, long expiresInSeconds);

    boolean exists(String key);

    void delete(String key);

    String get(String key);

    /**
     * 缓存类型-local/redis/memcache/..
     * 通过java SPI机制，接入方可自定义实现类
     *
     * @return
     */
    String type();
}
